package com.njlime.member.job;


import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import com.njlime.core.utils.DateUtil;
import com.njlime.member.service.sys.MemberService;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

@Service
public class TaskJob {
    private static final Logger logger = Logger.getLogger(TaskJob.class);
    @Resource
    private MemberService memberService;

    /**
     * 统计用户明细
     */
    public void userReport() {
        logger.debug("开始进行会员统计");
        try {
            memberService.addReport();
        } catch (Exception e) {
            logger.debug("会员统计出现错误");
            e.printStackTrace();
        }
        logger.debug("会员统计任务完成");
    }
}